I have come across a lot of use cases for manufacturing rows on the fly, aside from the common goal of populating a large data set such as a numbers or calendar table. A few favorites include building sample data, pivoting an unknown number of columns, data extrapolation, and filling gaps in date or time …
The post GENERATE_SERIES: My new go-to to build sets appeared first on Simple Talk.
What are optimizer statistics preferences? The statistics preferences of the optimizer determine the preset values of the parameters used by automatic statistics collection and the DBMS_STATS statistics gathering processes. |We can configure optimizer information at the table, schema, database (all tables), and global levels. A global preference refers to tables with no preferences as well […]
The post Optimizer statistics preferences appeared first on Techgoeasy.
MySQL Replication is a process where data from one MySQL database known as the source (formerly called “master”) is copied over to one or more other databases called replicas (formerly called “slaves”). Think of this like having a backup buddy that is always in sync and up to date, giving you peace of mind. It’s …
The post A Beginners Guide to MySQL Replication Part 1 appeared first on Simple Talk.
When we ran gather stats on the table, it generate table stats, index stats, and column stats. Column statistics are used in the optimizer’s selectivity calculations Let’s see how to find it How to check column statistics in Oracle Column stats can be found from dba_tab_columns or dba_tab_col_statistics SELECT column_name, num_distinct, density, num_nulls, avg_col_len, num_buckets, […]
The post How to check column statistics in Oracle appeared first on Techgoeasy.
Indexes are used to fasten access to the record in Oracle. Optimizer chooses an index over a full table scan based on the Index statistics. The statistics allow the optimizer to calculate the effectiveness of using one index over another. Let’s check out how to find the index statistics How to check Index statistics for […]
The post How to check Index statistics in Oracle appeared first on Techgoeasy.
Many times, we might want to check if gather stats ran on the table and when it ran last time. We can find this query dba_tables or user_tables view. let’s see a few queries related to this How to check gather stats on a table col num_rows format 999999990 heading 'ROWS' col avg_row_len format 9990 […]
The post How to check Gather stats on a table in Oracle appeared first on Techgoeasy.
Power BI and Azure are two related services, but with a considerable independence between them. Power BI share the Azure Tenant for security management, but in relation to networking, they are in completely different environments. Frequently Power BI needs to access to Azure resources, such as Azure SQL. If we use the easier and most …
The post Using Virtual Network Data Gateways to Secure Access to Azure SQL in Power BI appeared first on Simple Talk.
What is automatic statistics collection in Oracle? Automatic statistics jobs automatically gather Missing and Stale statistics on tables, indexes, and partitions for use by the Cost Based Optimizer (CBO) in determining the most optimal access paths for queries. This job was built to assist with the collection of statistics from the start with newly created […]
The post How to check automatic statistics collection in Oracle appeared first on Techgoeasy.
Learn how to enhance native SSIS Packages with new connectivity options, components for productivity and exceptional performance with SolarWinds Task Factory.
SolarWinds SAM provides a one-stop method to easily and seamlessly implement a top tier monitoring and reporting system for your SQL Servers and entire infrastructure.
End to End Monitoring | Health | Availability - I need to monitor the SQL Server instances in my environment and our IT team has a need to monitor the health and availability of our overall environment. We need to understand the issues in the environment at a high level, prioritize our findings then drill into issues in order to correct them. Ideally we would like to have a single tool for the DBA, Development and Systems teams to use.
The concept behind frameworks and libraries is to provide reusable code that you can use to perform everyday tasks so that developers don’t have to write all of the code from scratch for every project. Frameworks and libraries are designed to be modular and reusable, meaning they can be used in multiple projects without needing …
The post The difference between libraries and frameworks appeared first on Simple Talk.
In this article, learn how to automate the extraction of a SharePoint list dataset and create a CSV file in the SharePoint folder using Power Automate.
In this article, learn how to use Azure Data Factory and Azure Databricks for data integration to manage a variety of data formats, including batch-streaming and unstructured and structured data.
Many times, you might need to determine the segment name given the file id and block number. The below query can be used for that SELECT segment_name, segment_typeFROM dba_extentsWHERE file_id = < file AND<block BETWEEN block_id and block_id + blocks - 1; Example SELECT segment_name, segment_type FROM dba_extents WHERE file_id = 101 AND 8758758 BETWEEN […]
The post find segment name from block in oracle appeared first on Techgoeasy.
Sometimes when working with very large sets of data, you may not want to return all of the data at once. I discussed using TOP in my previous article, which allowed you to only get a number of rows from the start of the results from a query. However, if you want to see the …
The post Paging Data in T-SQL appeared first on Simple Talk.
The SELECT statement is used to retrieve information from a database. Following the execution of a SELECT statement, a tabular result is held in a result table (called a result set). It allows you to select the table columns depending on a set of criteria. SELECT statements might be as straightforward as selecting a few …
The post The SELECT Statement in Oracle appeared first on Simple Talk.
Learn how to write SQL code and how to use AND, OR, and NOT logical operators when building queries along with several examples of how to construct the query.
Configuration parameters are the most mythical creatures in the world of PostgreSQL. Ordinary PostgreSQL users often do not know that PostgreSQL configuration parameters exist, let alone what they are and what they mean. There is a good reason for such ignorance since, in real life, ordinary users don’t have any say in how these parameters …
The post Are PostgreSQL memory parameters magic? appeared first on Simple Talk.
Learn how decentralizing cloud data management can help organizations improve data access, agility, data governance, security, and reduce costs and improve scalability.
In this article, we look at how to use IS NOT NULL for a WHERE clause in SQL along with examples of how this can be used for SELECT, INSERT, UPDATE, and DELETE.
I recently wrote about a way to generate visual, interactive calendars in HTML by combining a calendar table with data from an events table (part 1 and part 2). This technique could be used to overlay any type of data onto calendars, but my specific goal was to make the monthly archives page on my …
The post Build a Better WordPress Archives Page Using MySQL appeared first on Simple Talk.
When I was a DBA involved with the management of a large number of database servers, I didn’t have many third-party tools to help me do my job. For the most part, I relied on scripts that I found or wrote. I enjoyed writing scripts to manage the servers, as it taught me a lot …
The post Why a monitoring tool is an essential tool for growing server estates appeared first on Simple Talk.
Learn the basics of creating VIEWs in SQL Server in this tutorial that shows why you should use VIEWs along with how to create with T-SQL and the SSMS GUI.
In this article, learn how to build functions for Azure Databricks to increase code reuse. We look at scalar functions, using functions, table functions, and user-defined functions.
Learn how to build a Python graphical user interface application in this step-by-step article that builds a stock market data app along with all the source code.